<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>常见问题 - 学知题库</title>
    <link href="../assets/css/app.css" rel="stylesheet">
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet">
    <script src="../assets/js/chart.umd.min.js"></script>
    
    <!-- Tailwind 配置 - 已合并到公共配置文件 -->
    <!-- 
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CBCB',
                        accent: '#FF7D00',
                        neutral: '#F5F7FA',
                        'neutral-dark': '#4E5969',
                        success: '#00B42A',
                        warning: '#FF7D00',
                        danger: '#F53F3F',
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    -->
    
    <!-- 工具类样式 - 已合并到 src/input.css -->
    <!-- 
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .text-shadow {
                text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
            .card-hover {
                transition: all 0.3s ease;
            }
            .card-hover:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 20px rgba(0,0,0,0.08);
            }
            .bg-gradient-primary {
                background: linear-gradient(135deg, #165DFF 0%, #0E42B3 100%);
            }
            .progress-ring-circle {
                transition: stroke-dashoffset 0.35s;
                transform: rotate(-90deg);
                transform-origin: 50% 50%;
            }
            .animate-float {
                animation: float 3s ease-in-out infinite;
            }
            @keyframes float {
                0% { transform: translateY(0px); }
                50% { transform: translateY(-10px); }
                100% { transform: translateY(0px); }
            }
        }
    </style>
    -->
</head>
<body class="bg-gray-50 font-inter text-gray-800 min-h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm sticky top-0 z-50 transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <a href="#" class="flex items-center">
                    <i class="fa fa-graduation-cap text-primary text-2xl mr-2"></i>
                    <h1 class="text-xl font-bold text-gray-800">学知题库</h1>
                </a>
            </div>
            
            <div class="hidden md:flex items-center space-x-6">
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">首页</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">题库</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">学习路径</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">模拟考试</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">关于我们</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">联系我们</a>
                <a href="#" class="text-primary font-medium border-b-2 border-primary pb-1">常见问题</a>
            </div>
            
            <div class="flex items-center space-x-4">
                <div class="relative hidden md:block">
                    <input type="text" placeholder="搜索题目、知识点或教材..." 
                           class="pl-10 pr-4 py-2 rounded-full bg-gray-100 focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all w-64">
                    <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                </div>
                
                <div class="flex space-x-2">
                    <button class="px-4 py-2 bg-white text-primary border border-primary rounded-lg hover:bg-primary/5 transition-colors">登录</button>
                    <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors">注册</button>
                </div>
            </div>
        </div>
    </header>

    <!-- 主内容区（常见问题页面） -->
    <main class="flex-1 py-8 bg-gray-50">
        <div class="container mx-auto px-4">
            <!-- 页面标题 -->
            <div class="mb-8">
                <h2 class="text-2xl font-bold text-gray-800">常见问题</h2>
                <p class="text-gray-500 mt-1">我们整理了用户最常咨询的问题，希望能帮助您解决疑问</p>
            </div>
            
            <!-- 搜索框 -->
            <div class="mb-8">
                <div class="relative">
                    <input type="text" placeholder="搜索常见问题..." 
                           class="w-full pl-12 pr-4 py-3 rounded-lg bg-white border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all shadow-sm">
                    <i class="fa fa-search absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                </div>
            </div>
            
            <!-- 分类导航 -->
            <div class="mb-8 overflow-x-auto scrollbar-hide">
                <div class="flex space-x-2 pb-2 min-w-max">
                    <button class="px-4 py-2 bg-primary text-white rounded-lg">全部问题</button>
                    <button class="px-4 py-2 bg-white text-gray-600 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">账号注册</button>
                    <button class="px-4 py-2 bg-white text-gray-600 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">题库使用</button>
                    <button class="px-4 py-2 bg-white text-gray-600 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">学习路径</button>
                    <button class="px-4 py-2 bg-white text-gray-600 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">模拟考试</button>
                    <button class="px-4 py-2 bg-white text-gray-600 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">付费会员</button>
                    <button class="px-4 py-2 bg-white text-gray-600 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors">设备兼容</button>
                </div>
            </div>
            
            <!-- 常见问题列表 -->
            <div class="space-y-4">
                <!-- 账号注册类 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-4 md:p-6">
                        <h3 class="text-lg font-medium mb-4 flex items-center">
                            <i class="fa fa-user-circle text-primary mr-2"></i>
                            账号注册与登录
                        </h3>
                        
                        <div class="space-y-4">
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何注册学知题库账号？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100">
                                    <p class="text-gray-600">您可以通过以下方式注册学知题库账号：<br>
                                    1. 打开学知题库网站或APP<br>
                                    2. 点击"注册"按钮<br>
                                    3. 选择使用手机号或电子邮箱注册<br>
                                    4. 按照提示填写信息并设置密码<br>
                                    5. 点击"注册"完成账号创建<br><br>
                                    注册成功后，您可以完善个人信息以获取更个性化的学习推荐。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>忘记密码怎么办？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">如果您忘记了密码，可以通过以下步骤重置：<br>
                                    1. 在登录页面点击"忘记密码"链接<br>
                                    2. 输入您注册时使用的手机号或电子邮箱<br>
                                    3. 系统将发送验证码到您的手机或邮箱<br>
                                    4. 输入验证码后设置新密码<br><br>
                                    如果您在操作过程中遇到问题，可以联系我们的客服协助处理。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何绑定/更换手机号？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">您可以通过以下步骤绑定或更换手机号：<br>
                                    1. 登录账号后，点击页面顶部的个人头像<br>
                                    2. 选择"账号设置"选项<br>
                                    3. 在"账号安全"栏目中找到"手机号"选项<br>
                                    4. 点击"绑定"或"更换"按钮<br>
                                    5. 按照提示输入新手机号并验证<br><br>
                                    绑定成功后，您可以使用新手机号登录账号。</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 题库使用类 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-4 md:p-6">
                        <h3 class="text-lg font-medium mb-4 flex items-center">
                            <i class="fa fa-book text-primary mr-2"></i>
                            题库使用
                        </h3>
                        
                        <div class="space-y-4">
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何查找特定类型的题目？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100">
                                    <p class="text-gray-600">您可以通过以下方式查找特定类型的题目：<br>
                                    1. 使用顶部搜索栏，输入关键词搜索<br>
                                    2. 在题库分类页面，选择学科、章节或题型<br>
                                    3. 使用筛选功能，根据难度、年份等条件筛选<br>
                                    4. 在高级搜索中，设置更精确的搜索条件<br><br>
                                    我们的题库支持多种搜索方式，您可以根据自己的需求选择最适合的方法。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何收藏题目？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">在做题过程中，您可以点击题目右侧的"收藏"按钮（星形图标）将题目加入收藏。收藏后的题目可以在"我的收藏"中查看，方便您随时复习重点题目。您也可以对收藏的题目进行分类管理，提高学习效率。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>错题本功能如何使用？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">当您做题时，系统会自动将错题加入您的错题本。您可以在"我的-错题本"中查看所有错题，并进行针对性练习。错题本支持以下功能：<br>
                                    1. 按科目、时间和难度筛选错题<br>
                                    2. 查看错题解析和正确答案<br>
                                    3. 标记重点错题<br>
                                    4. 重做错题，检验学习效果<br><br>
                                    定期复习错题是提高学习成绩的有效方法。</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 学习路径类 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-4 md:p-6">
                        <h3 class="text-lg font-medium mb-4 flex items-center">
                            <i class="fa fa-road text-primary mr-2"></i>
                            学习路径
                        </h3>
                        
                        <div class="space-y-4">
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>什么是学习路径？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100">
                                    <p class="text-gray-600">学习路径是我们根据学科知识体系和学习规律设计的系统化学习方案。每个学习路径包含多个学习阶段和知识点，按照循序渐进的原则排列。跟随学习路径学习可以帮助您更高效地掌握知识体系，避免盲目刷题。我们提供多种学科的学习路径，您可以根据自己的需求选择适合的路径开始学习。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何制定个性化学习路径？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">我们会根据您的学习目标、当前水平和学习时间，为您推荐个性化的学习路径。您也可以通过以下方式自定义学习路径：<br>
                                    1. 在学习路径页面，选择"自定义路径"<br>
                                    2. 设置学习目标和时间安排<br>
                                    3. 选择需要学习的知识点和题型<br>
                                    4. 系统将为您生成个性化的学习计划<br><br>
                                    您可以随时调整学习路径，以适应自己的学习进度。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何查看学习进度？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">您可以通过以下方式查看学习进度：<br>
                                    1. 在学习路径页面，查看每个阶段的完成情况<br>
                                    2. 在个人中心的"学习统计"中，查看整体学习进度和正确率<br>
                                    3. 使用学习报告功能，获取更详细的学习分析<br><br>
                                    我们的学习进度统计功能可以帮助您了解自己的学习状况，及时调整学习策略。</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 模拟考试类 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                    <div class="p-4 md:p-6">
                        <h3 class="text-lg font-medium mb-4 flex items-center">
                            <i class="fa fa-file-text-o text-primary mr-2"></i>
                            模拟考试
                        </h3>
                        
                        <div class="space-y-4">
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何参加模拟考试？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100">
                                    <p class="text-gray-600">您可以通过以下步骤参加模拟考试：<br>
                                    1. 在首页或导航栏中选择"模拟考试"<br>
                                    2. 选择考试类型（如单元测试、期中/期末考试、高考模拟等）<br>
                                    3. 设置考试参数（如题目数量、难度、时间限制等）<br>
                                    4. 点击"开始考试"按钮<br><br>
                                    考试过程中，系统会自动计时并保存您的答案。考试结束后，您可以查看成绩和详细解析。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>模拟考试成绩如何计算？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">我们的模拟考试成绩计算方式如下：<br>
                                    1. 单选题：每答对一题得相应分值<br>
                                    2. 多选题：全部选对得满分，部分选对得部分分，选错不得分<br>
                                    3. 判断题：答对得相应分值，答错不得分<br>
                                    4. 主观题：由系统根据参考答案和评分标准自动评分<br><br>
                                    考试结束后，系统会生成详细的成绩报告，包括总分、各题型得分、正确率、用时等信息。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何查看历史考试记录？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">您可以在"模拟考试"页面点击"历史记录"选项卡，查看所有已完成的模拟考试记录。点击具体的考试记录，您可以查看详细的成绩报告、错题分析和解析。您还可以对比多次考试的成绩，了解自己的进步情况。</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 未找到答案 -->
            <div class="bg-white rounded-xl shadow-sm p-6 mt-8 text-center">
                <div class="mb-4">
                    <i class="fa fa-question-circle text-4xl text-primary/60"></i>
                </div>
                <h3 class="text-lg font-medium mb-2">没有找到您需要的答案？</h3>
                <p class="text-gray-600 mb-4">您可以通过以下方式联系我们的客服团队</p>
                <div class="flex flex-col sm:flex-row justify-center gap-4">
                    <a href="#" class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors">
                        <i class="fa fa-envelope mr-2"></i>发送邮件
                    </a>
                    <a href="#" class="px-4 py-2 bg-white text-primary border border-primary rounded-lg hover:bg-primary/5 transition-colors">
                        <i class="fa fa-phone mr-2"></i>电话咨询
                    </a>
                </div>
            </div>
        </div>
    </main>

    <!-- 页脚（沿用原有风格） -->
    <footer class="bg-gray-800 text-white py-12 mt-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center mb-4">
                        <i class="fa fa-graduation-cap text-primary text-2xl mr-2"></i>
                        <h3 class="text-xl font-bold">学知题库</h3>
                    </div>
                    <p class="text-gray-400 mb-4">智能教育资源平台，助力学生高效学习</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weibo"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-wechat"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-qq"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-github"></i>
                        </a>
                    </div>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">快速链接</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">题库</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">学习路径</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">模拟考试</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">关于我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-white font-medium">常见问题</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">帮助中心</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-white font-medium">常见问题</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">意见反馈</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">隐私政策</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">联系我们</h4>
                    <ul class="space-y-2">
                        <li class="flex items-center">
                            <i class="fa fa-map-marker text-primary mr-2"></i>
                            <span class="text-gray-400">北京市海淀区中关村大街1号</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-phone text-primary mr-2"></i>
                            <span class="text-gray-400">400-123-4567</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-envelope text-primary mr-2"></i>
                            <span class="text-gray-400">contact@xuezhi.com</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-clock-o text-primary mr-2"></i>
                            <span class="text-gray-400">周一至周日 9:00-21:00</span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
                <p>&copy; 2025 学知题库 版权所有 | 京ICP备12345678号</p>
            </div>
        </div>
    </footer>

    <script>
        // FAQ手风琴效果
        document.addEventListener('DOMContentLoaded', function() {
            const faqItems = document.querySelectorAll('.border.border-gray-100.rounded-lg.overflow-hidden');
            
            faqItems.forEach(item => {
                const button = item.querySelector('button');
                const content = item.querySelector('.p-4.bg-gray-50.border-t.border-gray-100');
                const icon = button.querySelector('i.fa-angle-down');
                
                button.addEventListener('click', () => {
                    const isOpen = !content.classList.contains('hidden');
                    
                    // 关闭所有其他的FAQ项
                    faqItems.forEach(otherItem => {
                        if (otherItem !== item) {
                            otherItem.querySelector('.p-4.bg-gray-50.border-t.border-gray-100').classList.add('hidden');
                            otherItem.querySelector('i.fa-angle-down').style.transform = 'rotate(0deg)';
                        }
                    });
                    
                    // 切换当前FAQ项的状态
                    if (isOpen) {
                        content.classList.add('hidden');
                        icon.style.transform = 'rotate(0deg)';
                    } else {
                        content.classList.remove('hidden');
                        icon.style.transform = 'rotate(180deg)';
                    }
                });
            });
            
            // 默认打开第一个FAQ项
            if (faqItems.length > 0) {
                const firstItem = faqItems[0];
                firstItem.querySelector('.p-4.bg-gray-50.border-t.border-gray-100').classList.remove('hidden');
                firstItem.querySelector('i.fa-angle-down').style.transform = 'rotate(180deg)';
            }
        });
    </script>
</body>
</html>